package chapter06.属性和方法整体练习.案例1;

/**
 * ClassName: PersonTest
 * Package: chapter06.属性和方法整体练习.案例1
 * Description:
 *
 * @Author fjorid
 * @Create 2025/1/9 20:46
 * @Version 1.0
 */
public class PersonTest {
    public static void main(String[] args) {

        Person person1 = new Person();
        person1.name = "aaa";
        person1.age = 24;
        person1.study();
        person1.showAge();
        person1.addAge(2);
        person1.showAge();
        Person person2 = new Person();
        person2.name = "abc";
        person2.age = 44;
        person2.study();
        person2.showAge();
        person2.addAge(2);
        person2.showAge();
    }
}
